import store from '@/store'

export class CtgyActions {
  // 获取1级分类
  static async findFirstCtgyList() {
    await store.dispatch('ctgyModule/findFirstCtgyList')
  }

  // 根据1级分类获取对应的2级分类和3级分类
  static async findSecThirdCtgyList(firstCtgyId: number) {
    await store.dispatch('ctgyModule/findSecThirdCtgyList', firstCtgyId)
  }
}


type StateTree = Record<string | number | symbol, any>;
function fn<T extends StateTree = {}  >(arg: {state?: () => T}) {
  
}
let obj = {
  name: 'zs',
  age: 123,
  address: {
    num: 1,
    name: 'wuhan'
  }
}
fn({
  state: () => {
    return {}
  }
})
